export const localServer = (url: string) => {
  const localServer = localStorage.getItem("localServer") || "";
  if (localServer) {
    return `${localServer}${url}`;
  }
  return `http://81.69.40.74:39985${url}`;
};

export const cloudServer = (url: string) =>
  process.env.NODE_ENV === "development"
    ? `http://127.0.0.1:8848${url}`
    : `http://127.0.0.1:8848${url}`;
